package com.igor.reporting.pages.contactPerson;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.igor.reporting.dao.contactPerson.ContactPersonDAO;
import com.igor.reporting.entities.contactPerson.ContactPerson;

public class Add {

	@Inject
	private ContactPersonDAO contactPersonDAO;
	@Property
	private ContactPerson contactPerson;

	Object onSuccess() {
		contactPersonDAO.add(contactPerson);
		return Browse.class;
	}

}
